package cn.tt.tuantuanerp.tuantuanerp.search.service.impl;

import cn.tt.tuantuanerp.tuantuanerp.comment.ex.ServiceException;
import cn.tt.tuantuanerp.tuantuanerp.comment.pojo.vo.SkuDetailsVO;
import cn.tt.tuantuanerp.tuantuanerp.comment.pojo.vo.SkuListItemVO;
import cn.tt.tuantuanerp.tuantuanerp.comment.pojo.vo.UserListItemVO;
import cn.tt.tuantuanerp.tuantuanerp.comment.web.ServiceCode;
import cn.tt.tuantuanerp.tuantuanerp.product.service.ISkuService;
import cn.tt.tuantuanerp.tuantuanerp.search.entity.Sku;
import cn.tt.tuantuanerp.tuantuanerp.search.entity.User;
import cn.tt.tuantuanerp.tuantuanerp.search.repository.SkuRepository;
import cn.tt.tuantuanerp.tuantuanerp.search.repository.UserRepository;
import cn.tt.tuantuanerp.tuantuanerp.search.service.ISkuSearchService;
import cn.tt.tuantuanerp.tuantuanerp.search.service.IUserSearchService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@Service
public class UserSearchServiceImpl implements IUserSearchService {

    @DubboReference
    ISkuService dubboSkuService;
    @Autowired
    UserRepository userRepository;


    @Override
    public List<User> queryUserBySkuNameMatches(String name) {

        return (List<User>) userRepository.queryUserByNameMatches(name);
    }



}
